/*
 *
  */
Rsd.define('Rsd.example.ListPage', {
    extend: 'Rsd.container.Page',
    requires: [
        'Rsd.form.Images',
        'Rsd.control.ListView',
        'Rsd.control.Carousel'
    ],
    xtype: 'list-page',
    //dataStore: 'listStore',
    readonly: false,
    autoLoad: true,
    style:{overflow:'auto',display:'block'},
    height:1500,
    layout: 'vbox',
    items: [
        {
            xtype:'carousel',
            label:{position:'top',content:'this is carousel control'},
            width:'100%',
            dataSource: [
                { 
                    src: 'https://img.alicdn.com/tfs/TB1Q7YOdMHqK1RjSZFgXXa7JXXa-2868-912.png', 
                },
                { 
                    src: 'https://img1.baidu.com/it/u=3971138395,940312202&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500' 
                },
                { 
                    src: 'https://img0.baidu.com/it/u=3299748499,2184400864&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500', 
                },
                { 
                    src: 'https://image.scol.com.cn/data/attachment/forum/201802/12/182854mtw1exvsqsy0wqu3.jpg', 
                }
            ],
            height: 500,
        },
        {
            height:30
        },
        {
            xtype: 'list-view',
            width: 300,
            border:true,
            height: 200,
            label:
            {
                xtype: 'image',
                position: 'top',
                label:false,
                height: 50,
                width: 60,
                style:{alignSelf:'center'},
                src: ''
            },
            itemStyle: {textAlign: 'center', width: '100%' },
            dataSource: [
                '高效的内容创作工具',
                '聚集全网最新鲜的创意，直击用户需求',
                '海量优质素材，快速锁定优质商品、图片、视频', '发布前内容质量诊断，内容编辑更高效'
            ]

        },
        {
            xtype:'images',
            label:{content:'select images from albums', position: 'top'},
            width:'100%',
            height: 600, 
            itemStyle:{height:240,width:'40%'},
            value:[
                'https://img.alicdn.com/tfs/TB1Q7YOdMHqK1RjSZFgXXa7JXXa-2868-912.png', 
                'https://img1.baidu.com/it/u=3971138395,940312202&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500'
            ]
        }
        

    ],
    /*
    * */
    constructor: function ListPage(config) {
        config = config || {};
        this.apply(config);

    },
    /**
     * 
     */
    load: function load() {
        
        this.callParent();
        //console.trace('load page data');
        this.items[0].loadData(); 
        this.items[2].loadData();
    }



}, function (type) {


});